package cn.baimo.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * ClassName: DefaultController
 * Description:
 * date: 2020/8/20 0020 17:22:32
 *
 * @author BaiMo
 * @since JDK 1.8
 */
@Controller
public class DefaultController {
    //进入主页
    @RequestMapping({"/index", "/"})
    public String index() {
        System.out.println("进入主页...");
        return "index";
    }
}
